<script setup></script>
<template>
    <page-container title="文件管理">
        <template #extra>
            <el-upload class="avatar-uploader" :show-file-list="false" :auto-upload="false" :on-change="onAddFile">
                <el-button type="primary">添加文件</el-button>
            </el-upload>
        </template>
        <!-- 表单区域 -->
        <el-form inline>

        </el-form>

        <!-- 表格区域 -->
        <el-table :data="fileList" v-loading="loading">

        </el-table>


        <!-- 分页区域 -->
        <el-pagination v-model:current-page="params.pagenum" v-model:page-size="params.pagesize" :page-sizes="[2, 3, 5, 10]"
            :background="true" layout="jumper, total, sizes, prev, pager, next" :total="total" @size-change="onSizeChange"
            @current-change="onCurrentChange" style="margin-top: 20px; justify-content: flex-end" />
    </page-container>
</template>
<style lang="scss" scoped></style>